// Receiver.h: interface for the Receiver class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_RECEIVER_H__97F361EF_9DA6_4E71_A79C_08A5B580A1F3__INCLUDED_)
#define AFX_RECEIVER_H__97F361EF_9DA6_4E71_A79C_08A5B580A1F3__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "..\common\thread.h"
#include "..\common\Sockets\absobserver.h"
#include "..\common\types.h"
#include "..\common\logger.h"
#include "..\common\Sockets\CNodeClient.h"
#include "..\common\SDL\include\SDL.h"
class Cliente;
class Receiver  : public thread
{
public:
	Receiver(CNodeClient& socketCliente, MapObservers& mapObservers,Cliente* cliente);

	virtual ~Receiver();

	void run();

	

private:

	static SDL_TimerID updater;

	static Uint32 update2(Uint32 intervalo, void * adicional);

	MapObservers mapObservers;
	CNodeClient socketCliente;

	static Cliente* cliente;

};

#endif // !defined(AFX_RECEIVER_H__97F361EF_9DA6_4E71_A79C_08A5B580A1F3__INCLUDED_)
